/**
 * 
 */
package com.xinghou.platform.model.main;

import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;


/**
 * @author wxtdy
 *
 */
@Document( collection = "userGeo" )
public class Person{
	
	@Id
	private Integer _id;
	private String cityCode;
	private Double[] pos;
	private Boolean sex;
	private Double dis;
	@Indexed
	private Long lastLoginTime;
	
	public Person(){
		
	}
	
	@PersistenceConstructor
	public Person(Integer _id, Boolean sex, String cityCode, Double[] pos, Long lastLoginTime){
		this._id = _id;
		this.sex = sex;
		this.cityCode = cityCode;
		this.pos = pos;
		this.lastLoginTime = lastLoginTime;
	}

	/**
	 * @return the lastLoginTime
	 */
	public Long getLastLoginTime() {
		return lastLoginTime;
	}

	/**
	 * @param lastLoginTime the lastLoginTime to set
	 */
	public void setLastLoginTime(Long lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	/**
	 * @return the pos
	 */
	public Double[] getPos() {
		return pos;
	}

	/**
	 * @param pos the pos to set
	 */
	public void setPos(Double[] pos) {
		this.pos = pos;
	}

	/**
	 * @return the cityCode
	 */
	public String getCityCode() {
		return cityCode;
	}

	/**
	 * @param cityCode the cityCode to set
	 */
	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	/**
	 * @return the _id
	 */
	public Integer get_id() {
		return _id;
	}

	/**
	 * @param _id the _id to set
	 */
	public void set_id(Integer _id) {
		this._id = _id;
	}

	public Boolean getSex() {
		return sex;
	}

	public void setSex(Boolean sex) {
		this.sex = sex;
	}

	public Double getDis() {
		return dis;
	}

	public void setDis(Double dis) {
		this.dis = dis;
	}

}
